package com.bracketbird.client.util;


import com.bracketbird.client.service.rtc.*;

import java.util.*;

/**
 *
 */
public class RTCEventPrinter {
    public static void printEvents(Collection<RTCEvent> events, String title){
        StringBuffer sb = new StringBuffer("\n----------- "+ title + " -----------");

        for (RTCEvent e : events) {
            sb.append("\n");
            sb.append(e.getEventLogId()).append("\t");
            sb.append(e.getName());

            int start = 40;
            start -= e.getName().length();
            while(start > 0){
                sb.append(" ");
                start--;
            }
            sb.append(e.getDeleted()).append("\t");

        }
        sb.append("\n----------------------\n");
    }
}
